Skip to content

Use map of versions instead of single WPILib version - #874

Draft
thatcomputerguy0101 wants to merge 1 commit into
wpilibsuite:mainfrom
thatcomputerguy0101:library-version-map
Draft

thatcomputerguy0101 wants to merge 1 commit into
wpilibsuite:mainfrom
thatcomputerguy0101:library-version-map

Conversation

@thatcomputerguy0101

@thatcomputerguy0101 thatcomputerguy0101 commented Nov 16, 2026 •

Copy link
Copy Markdown

This adds version aliases like wpilib.opencv for third-party libraries used from WPILib, which correspond to the version of that library used by the active WPILib version. The actual version gets pulled in at compile-time by native -utils, similar to the current wpilib version alias. This is an implementation of one of the options to fulfill wpilibsuite/allwpilib#9700, by providing the vendordeps extension a map of library version aliases. Assiciated with wpilibsuite/native-utils#315.

A potential problem with this solution is that it essentially requires ABI compatibility from all libraries for which version aliases are exposed within a single WPILib year, otherwise builds may be broken by updating GradleRIO. Generally I don't think this should be a problem though, since the alternative is broken builds due to version conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant